{% extends "base.html" %}

{% block title %}Create an account{% endblock %}

{% block content %}
<div class="restamain">
    <div class="container_16">
        <div class="grid_16">
            <h1>Create an account</h1>
            <form action="." method="post">{% csrf_token %}
                {% if form.error_dict %}
                    <p class="error">Please correct the errors below.</p>
                {% endif %}
                <div>
                    {% if form.username.errors %}
                        {{ form.username.html_error_list }}
                    {% endif %}
                    <label for="id_username">Username</label> 
                    {{ form.username }}
                </div>
                <div> 
                    {% if form.password1.errors %}
                        {{ form.password1.html_error_list }}
                    {% endif %}
                    <label for="id_password1">Password</label> 
                    {{ form.password1 }}
                </div>
                <div>
                    {% if form.password2.errors %}
                        {{ form.password2.html_error_list }}
                    {% endif %}
                    <label for="id_password2">Password (again)</label> 
                    {{ form.password2 }}
                </div>
                <div>
                    <input type="submit" value="Start your tour!" />
                </div>
            </form>
        </div>

    </div>
</div>
{% endblock %}

